package 类和对象课堂练习;

import java.util.Scanner;

public class Lianxi031811 {
    public static void main(String[] args) {
        Lianxi03181 a=new Lianxi03181();
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入你的姓名：");
        a.name=scan.next();
        System.out.println("请输入你的年龄：");
        a.age=scan.nextInt();
        a.money=a.intmenpiao();
        System.out.println("这个游客"+a.name+"\n年龄"+a.age+"\n应付门票"+a.money+"元");
    }
}
